package com.tju.resource.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tju.resource.model.TbShipMatl;
import com.tju.resource.model.TbShipment;
import com.tju.resource.model.TbShipmentConsumables;
import com.tju.resource.tool.tool.ClientParameters;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity generator.domain.TbShipment
 */
public interface TbShipmentMapper extends BaseMapper<TbShipment> {
    /**
     * 查询出货数据
     */
    IPage<TbShipment> selectShipment(Page<TbShipment> page, @Param("pa") ClientParameters param);
    /**
     * 查询出货下面的耗材
     */
    List<TbShipmentConsumables> selectShipmentConsumablesList(Long id);
    /**
     * 查询出货下面的物料
     * @param oId
     * @param shipId
     * @return
     */
    List<TbShipMatl> shipMatlById(@Param("oId") Long oId, @Param("shipId") Long shipId);
}




